package cn.eli.vue.service.postAsk;

import cn.eli.vue.entity.PostAsk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :lzs
 * @Description :问题模块接口
 */

public interface PostAskService {
    /*发布问题*/
    public int AskPost(int user_id, String postAsk_title,String postAsk_discribe, String postAsk_img);
    /*修改问题*/
    public int AskModify(int postAsk_id,String postAsk_title,String postAsk_discribe, String postAsk_img);

    /*收藏问题insert*/
    public int AskSubscribeInsert(int user_id,int postAsk_id);
    /*收藏问题update */
    public int AskSubscribeUpdate(int user_id,int postAsk_id);

    /*取消收藏问题delete*/
    public int AskSubscribeCancelDelete(int user_id,int postAsk_id);
    /*取消收藏问题 update*/
    public int AskSubscribeCancelUpdate(int user_id,int postAsk_id);
    /*获取所有问题*/
    List<PostAsk> AllAsk();
    /*获取该用户发布的所有问题*/
    List<PostAsk> AllAskInUser(int user_id);
}
